<?php
//Svetlana Gornostajeva, Student 13, reedeti 17.15-21.15, 
function get_brithday ($ikood) {
}
 if ( !is_numeric ($kood) ) {
}
$ikood = $_POST["isikukood"];
Echo "<pre> "; 
Echo "<b><h2><span style='color: red'><strong>Synnipaev isikukoodi jargi </strong></span> </h2></b>"; 
Echo "<pre> "; 
Echo "<b>Sisesta sinu isikukoodi esimesed 6-9 numbrid. Ja me saame teada
millal sa oled sundinud </b>"; 
$array = array();
while ($ikood > 0) {
    $array[] = $ikood % 10;
    $ikood = intval($ikood / 10); 
}

$array = array_reverse($array);


Echo "<pre> "; 

 Echo "<b><span style='color: Mediumseagreen'>Sa oled syndinud  ".$array[5], $array[6],".", $array[3], $array[4],".",$array[1],$array[2],"</span></b>" ;

?>